package kr.hyunist.musicplayexer.Application;

import java.util.ArrayList;

import kr.hyunist.musicplayexer.IMediaService;
import kr.hyunist.musicplayexer.ListMainActivity;
import kr.hyunist.musicplayexer.PlayDetail;
import kr.hyunist.musicplayexer.DTO.MyMusic;
import android.app.Application;
import android.media.MediaPlayer;

public class MediaApplication extends Application {
	// List 포지션
	private int currentPosition;

	// arList 전역으로 선언
	private ArrayList<MyMusic> arList;

	// 원격 인터페이스 서비스객체
	public IMediaService mService;

	// 전역 미디어 플레이어
	public MediaPlayer mPlayer;

	// 무작위 재생 여부
	public boolean isShuffle;

	//리스트 액티비티 전역
	public ListMainActivity mListActivity;
	
	//상세페이지
	public PlayDetail pDetail;
	
	@Override
	public void onCreate() {
		super.onCreate();
		arList = new ArrayList<MyMusic>();
		mListActivity = new ListMainActivity();
		pDetail = new PlayDetail();
	}

	@Override
	public void onTerminate() {
		super.onTerminate();
	}

	public int getCurrentPosition() {
		return currentPosition;
	}

	public void setCurrentPosition(int currentPosition) {
		this.currentPosition = currentPosition;
	}

	public ArrayList<MyMusic> getArList() {
		return arList;
	}

	public void setArList(ArrayList<MyMusic> arList) {
		this.arList = arList;
	}

}
